import { Array, AutoIncrementId, Code, CreateDate, DateTime, Digdit, Entity, Jsonb, MemberId, Money, Price, PrimaryUuid, SysUserId, Title, UpdateDate, Uuid } from "@sker/core";

@Entity({ name: 'kd_agent' })
export class KdAgent {

    @PrimaryUuid()
    id: string;

    @AutoIncrementId()
    agent_id: number;

    @Title({ comment: '加盟商名称' })
    title: string;

    @SysUserId({ comment: '绑定会员' })
    user_id: string;

    @DateTime({ comment: '开始时间' })
    start_time: Date;

    @DateTime({ comment: '结束时间' })
    end_time: Date;

    @Code({ nullable: true })
    area: string;

    @Code({ comment: '结算方式' })
    type: string;

    @Money({ comment: '值' })
    type_value: number;

    @Jsonb({ nullable: true })
    type_value_items: any[]

    @CreateDate()
    create_date: Date;

    @UpdateDate()
    udpate_date: Date;

    @Uuid({ nullable: true })
    create_user_id: string;
}